﻿using SmartSapce.ServiceLocation;
using SmartSpace.Core;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;

namespace SmartSpace.WebApp._console.common
{
    public partial class select_privilege : System.Web.UI.Page
    {
        protected void Page_Load(object sender, EventArgs e)
        {

        }

        protected void _ctlBtnAssign_Click(object sender, EventArgs e)
        {

        }

        protected void _ctlBtnSearch_Click(object sender, EventArgs e)
        {
            ICoreSearcher searcher = ServiceLocator.Get<ICoreSearcher>();
            PagedResult<Privilege> result = searcher.FindPrivilege(this._ctlEditFilter.Text, string.Empty, string.Empty, 0, 99999);
            _ctlList.DataSource = result.Data;
            _ctlList.DataBind();
        }
    }
}